using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Wiki_Ver - 维基控制 - 对象继承类
    /// </summary>
    [MetadataType(typeof(WikiVerValidaTion))]
    public class WikiVer : IWikiVer<WikiVer>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class WikiVerValidaTion
       {

     

        /// <summary>
        /// 版本ID
        /// </summary>
        [Display(Name ="版本ID")]
        [Required]
        [StringLength(36)]
        public String VerId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 文件ID
        /// </summary>
        [Display(Name ="文件ID")]
        [Required]
        [StringLength(36)]
        public String FileId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 签入用户ID
        /// </summary>
        [Display(Name ="签入用户ID")]
        [StringLength(36)]
        public String CheckUserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 签入时间
        /// </summary>
        [Display(Name ="签入时间")]

        public DateTime CheckTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 说明
        /// </summary>
        [Display(Name ="说明")]
        [StringLength(500)]
        public String Detailed
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否当前版本
        /// </summary>
        [Display(Name ="是否当前版本")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsCurrent
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name ="状态")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.WikiVer.Status Status
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
